function k = numgcf

% Number of the current figure
%
%k = numgcf

k = gcf;

if ~isa(k,'double')
    k = k.Number;
end
